package test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import analyser.Analyser;
import collector.Collector;
import collector.NetCollector;
import render.PieRender;
import render.Render;

public class Action {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
//		Render render = (Render) context.getBean("line");
//		render.render();
		
//		Collector c1 = context.getBean(Collector.class);
//		Collector c2 = context.getBean(Collector.class);
//		System.out.println(c1==c2);
		
//		Collector c1 = context.getBean(Collector.class);
//		NetCollector vc  = (NetCollector) c1;
//		System.out.println(vc.getCname());
		
		Analyser analyser = context.getBean(Analyser.class);
		analyser.analyze();
	}
}
